export function setStorageString(key, str) {
    localStorage.setItem(key, str)
}

export function setStorageObject(key, obj) {
    setStorageString(key, JSON.stringify(obj))
}

export function setStorageArray(key, obj) {
    setStorageString(key, JSON.stringify(obj))
}

export function getStorageString(key) {
    return localStorage.getItem(key)
}

export function getStorageObject(key) {
    return JSON.parse(getStorageString(key))
}

export function getStorageArray(key) {
    return JSON.parse(getStorageString(key))
}

export function delStorageItem(key) {
    localStorage.removeItem(key)
}


